// 缓存，用户信息等内容保存在其中。
const TOKEN_KEY = 'wenyao-uni-Token'

export function getToken() {
  return uni.getStorageSync(TOKEN_KEY)
}

export function setToken(token) {
  return uni.setStorageSync(TOKEN_KEY, token)
}

export function removeToken() {
  return uni.removeStorageSync(TOKEN_KEY)
}

export function getCache(key) {
  return uni.getStorageSync(key)
}

export function setCache(key, token) {
  return uni.setStorageSync(key, token)
}

export function removeCache(key) {
  return uni.removeStorageSync(key)
}
